package com.jeeplus.modules.sys.entity;


import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.modules.test.tree.dialog.entity.TestTree1;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author Administrator
 * @title: ServiceInfo
 * @projectName jeeplus
 * @description: TODO
 * @date 2019/7/2416:34
 */

public class ServiceInfo extends DataEntity<ServiceInfo> {

    /**
     * servicename
     */
    @NotNull(message = "服务名不能为空")
    @Column(name = "ServiceName", unique = true, nullable = false, length = 255)
    private String servicename;

    /**
     * servicedescr
     */
    @NotNull(message = "服务描述不能为空")
    @Column(name = "ServiceDescr", nullable = false, length = 255)
    private String servicedescr;

    /**
     * ipaddress
     */
    @NotNull(message = "地址不能为空")
    @Column(name = "Ipaddress", nullable = false, length = 255)
    private String ipaddress;

    /**
     * port
     */
    @NotNull(message = "端口号不能为空")
    @Column(name = "Port", nullable = false, length = 255)
    private String port;

    /**
     * username
     */
    @NotNull(message = "用户名不能为空")
    @Column(name = "UserName", nullable = false, length = 255)
    private String username;

    /**
     * passwd
     */
    @NotNull(message = "密码不能为空")
    @Column(name = "PassWd", nullable = false, length = 255)
    private String passwd;

    /**
     * connstrname
     */
    @NotNull(message = "连接名不能为空")
    @Column(name = "ConnStrName", nullable = false, length = 255)
    private String connstrname;

    /**
     * platform
     */
    @NotNull(message = "操作平台不能为空")
    @Column(name = "Platform", nullable = false, length = 255)
    private String platform;
    private TestTree1 platformInfo;
    public TestTree1 getPlatformInfo(){return this.platformInfo;}
    public void setPlatformInfo(TestTree1 platformInfo){this.platformInfo=platformInfo;};
    /**
     * storeno
     */
    @NotNull(message = "地点编号不能为空")
    @Column(name = "StoreNo", nullable = false, length = 11)
    private String storeno;
    private Office office;		// 归属部门
    //@NotNull(message="归属部门不能为空")
    @ExcelField(title="归属部门", fieldType=Office.class, value="office.name", align=2, sort=1)
    public Office getOffice() {
        return office;
    }

    public void setOffice(Office office) {
        this.office = office;
    }

    /**
     * 获取servicename
     *
     * @return servicename
     */
    public String getServicename() {
        return this.servicename;
    }

    /**
     * 设置servicename
     *
     * @param servicename
     */
    public void setServicename(String servicename) {
        this.servicename = servicename;
    }

    /**
     * 获取servicedescr
     *
     * @return servicedescr
     */
    public String getServicedescr() {
        return this.servicedescr;
    }

    /**
     * 设置servicedescr
     *
     * @param servicedescr
     */
    public void setServicedescr(String servicedescr) {
        this.servicedescr = servicedescr;
    }

    /**
     * 获取ipaddress
     *
     * @return ipaddress
     */
    public String getIpaddress() {
        return this.ipaddress;
    }

    /**
     * 设置ipaddress
     *
     * @param ipaddress
     */
    public void setIpaddress(String ipaddress) {
        this.ipaddress = ipaddress;
    }

    /**
     * 获取port
     *
     * @return port
     */
    public String getPort() {
        return this.port;
    }

    /**
     * 设置port
     *
     * @param port
     */
    public void setPort(String port) {
        this.port = port;
    }

    /**
     * 获取username
     *
     * @return username
     */
    public String getUsername() {
        return this.username;
    }

    /**
     * 设置username
     *
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取passwd
     *
     * @return passwd
     */
    public String getPasswd() {
        return this.passwd;
    }

    /**
     * 设置passwd
     *
     * @param passwd
     */
    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    /**
     * 获取connstrname
     *
     * @return connstrname
     */
    public String getConnstrname() {
        return this.connstrname;
    }

    /**
     * 设置connstrname
     *
     * @param connstrname
     */
    public void setConnstrname(String connstrname) {
        this.connstrname = connstrname;
    }

    /**
     * 获取platform
     *
     * @return platform
     */
    public String getPlatform() {
        return this.platform;
    }

    /**
     * 设置platform
     *
     * @param platform
     */
    public void setPlatform(String platform) {
        this.platform = platform;
    }

    /**
     * 获取storeno
     *
     * @return storeno
     */
    public String getStoreno() {
        return this.storeno;
    }

    /**
     * 设置storeno
     *
     * @param storeno
     */
    public void setStoreno(String storeno) {
        this.storeno = storeno;
    }
}
